package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.SysOrderStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
* 刷单表
* </p>
*
* @author huangrensen
* @since 2024-07-17
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysOrder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
    * 邮箱
    */
    private String email;


    /**
    * 邮箱姓名
    */
    private String emailName;


    /**
    * 卡号
    */
    private String cardNo;


    /**
    * 购买的商品链接
    */
    private String productUrl;


    /**
    * 购买数量
    */
    private Integer qty = 0;


    /**
    * 收货人姓名
    */
    private String receiver;


    /**
    * 电话号码
    */
    private String mobile;


    /**
    * 街道地址
    */
    private String street;


    /**
    * 具体地址
    */
    private String address;


    /**
    * 城市
    */
    private String city;


    /**
    * 省
    */
    private String province;


    /**
    * 邮政编码
    */
    private String postCode;

    /**
     * 是否需要添加心愿单
     */
    private String wish;

    /**
     * 状态
     */
    private Integer status = SysOrderStatusEnum.WAITING.getValue();
    @TableField(exist = false)
    private String statusName;

}
